/****************************************************************************
 *  Title:       SD062.H                                                    *
 *  Target MCU:  SD062                                                      *
 *  Description: Register/bit definitions                                   *
 *  Company:     ELAN MICROELECTRONICS (SZ) LTD.                            *
 *  Date:        2019-8-1                                                   *
 *  Version:     v1.0                                                       *
 ****************************************************************************/
static unsigned int  R0                 @0x00:rpage 0;//Indirect Address Register
static unsigned int  IAR                @0x00:rpage 0;//Indirect Address Register
static unsigned int  R1                 @0x01:rpage 0;//Bank selection control register
static unsigned int  BSR                @0x01:rpage 0;//Bank selection control register
static unsigned int  R2                 @0x02:rpage 0;//Program Counter & Stack
static unsigned int  PCL                @0x02:rpage 0;//Program Counter & Stack
static unsigned int  R3                 @0x03:rpage 0;//Process Status Register
static unsigned int  STATUS             @0x03:rpage 0;//Process Status Register
static unsigned int  SR                 @0x03:rpage 0;//Process Status Register
static unsigned int  R4                 @0x04:rpage 0;//RAM Select Register
static unsigned int  RSR                @0x04:rpage 0;//RAM Select Register
static unsigned int  PORT5              @0x05:rpage 0;//I/O Port Address
static unsigned int  PORT6              @0x06:rpage 0;//I/O Port Address
static unsigned int  IOCR5              @0x0B:rpage 0;//IO PORT 5 Control Register
static unsigned int  IOCR6              @0x0C:rpage 0;//IO PORT 6 Control Register
static unsigned int  OMCR               @0x0E:rpage 0;//Operation Mode Control Register
static unsigned int  EIESCR             @0x0F:rpage 0;//External interrupt edge selection control register
static unsigned int  WUCR1              @0x10:rpage 0;//Wake-up Control Register 1
static unsigned int  WUCR2              @0X11:rpage 0;//Wake-up Control Register 2
static unsigned int  WUCR3              @0X12:rpage 0;//Wake-up Control Register 3
static unsigned int  SYSCON             @0X13:rpage 0;//Systen Control Register
static unsigned int  SFR1               @0X14:rpage 0;//Status Flag Register 1
static unsigned int  SFR2               @0X15:rpage 0;//Status Flag Register 2
static unsigned int  SFR3               @0X16:rpage 0;//Status Flag Register 3
static unsigned int  SFR4               @0X17:rpage 0;//Status Flag Register 4
static unsigned int  SFR6               @0X19:rpage 0;//Status Flag Register 6
static unsigned int  SFR7               @0X1A:rpage 0;//Status Flag Register 7
static unsigned int  IMR1               @0X1B:rpage 0;//Interrupt Mask Register 1
static unsigned int  IMR2               @0X1C:rpage 0;//Interrupt Mask Register 2
static unsigned int  IMR3               @0X1D:rpage 0;//Interrupt Mask Register 3
static unsigned int  IMR4               @0X1E:rpage 0;//Interrupt Mask Register 4
static unsigned int  IMR6               @0X20:rpage 0;//Interrupt Mask Register 6
static unsigned int  WDTCR              @0X21:rpage 0;//Watch Dog Timer Control Register
static unsigned int  ADCR1              @0X3E:rpage 0;//ADC Control Register 1
static unsigned int  ADCR2              @0X3F:rpage 0;//ADC Control Register 2
static unsigned int  ADISR              @0X40:rpage 0;//Analog to Digital Converter Input Channel Selection Register
static unsigned int  ADER1              @0X41:rpage 0;//Analog to Digital Converter Input Control Register 1
static unsigned int  ADDL               @0X43:rpage 0;//Low Byte of Analog to Digital Converter Data
static unsigned int  ADDH               @0X44:rpage 0;//High Byte of Analog to Digital Converter Data
static unsigned int  ADCVL              @0X45:rpage 0;//Low Byte of Analog to Digital Converter Comparison
static unsigned int  ADCVH              @0X46:rpage 0;//High Byte of Analog to Digital Converter Comparison

//SBANK1
static unsigned int  P5PHCR             @0X08:rpage 1;//Port 5 Pull-high Control Register
static unsigned int  P6PHCR             @0X09:rpage 1;//Port 6 Pull-high Control Register
static unsigned int  P5PLCR             @0X0B:rpage 1;//Port 5 Pull-low Control Register
static unsigned int  P6PLCR             @0X0C:rpage 1;//Port 6 Pull-low Control Register
static unsigned int  P5HDSCR            @0X0E:rpage 1;//Port 5 High Drive/Sink Control Register
static unsigned int  P6HDSCR            @0X0F:rpage 1;//Port 6 High Drive/Sink Control Register
static unsigned int  PWMSCR             @0X16:rpage 1;//PWM Start Control Register
static unsigned int  PWMACR             @0X17:rpage 1;//PWMA Control Register
static unsigned int  PRDAL              @0X18:rpage 1;//Low byte of PWMA period
static unsigned int  PRDAH              @0X19:rpage 1;//High byte of PWMA period

static unsigned int  DTAL               @0X1A:rpage 1;//Low byte of PMWA duty
static unsigned int  DTAH               @0X1B:rpage 1;//High byte of PMWA duty
static unsigned int  TMRAL              @0X1C:rpage 1;//Low byte of TimerA
static unsigned int  TMRAH              @0X1D:rpage 1;//High byte of TimerA
static unsigned int  PWMBCR             @0X1E:rpage 1;//PWMB Control Register
static unsigned int  PRDBL              @0X1F:rpage 1;//Low byte of PWMB period
static unsigned int  PRDBH              @0X20:rpage 1;//High byte of PWMB period
static unsigned int  DTBL               @0X21:rpage 1;//Low byte of PWMB duty
static unsigned int  DTBH               @0X22:rpage 1;//High byte of PWMB duty
static unsigned int  TMRBL              @0X23:rpage 1;//Low byte of TimerB

static unsigned int  TMRBH              @0X24:rpage 1;//High byte of TimerB
static unsigned int  EECR1              @0X40:rpage 1;//EEPROM Control Register 1
static unsigned int  EECR2              @0X41:rpage 1;//EEPROM Control Register 2
static unsigned int  EERA               @0X42:rpage 1;//EEPROM Address
static unsigned int  EERD               @0X43:rpage 1;//EEPROM Data
static unsigned int  FLKR               @0X44:rpage 1;//Flash Key Register for Table write use
static unsigned int  TBPTL              @0X45:rpage 1;//Table Point Low Register
static unsigned int  TBPTH              @0X46:rpage 1;//Table Point High Register
static unsigned int  STKMON             @0X47:rpage 1;//Stack point
static unsigned int  PCH                @0X48:rpage 1;//Program Counter High

static unsigned int  TBWCR              @0X4D:rpage 1;//Table Write Control Register
static unsigned int  TBWAL              @0X4E:rpage 1;//Table Write start Address Low byte
static unsigned int  TBWAH              @0X4F:rpage 1;//Table Write start Address High byte

//SBANK2
static unsigned int  TM1CR1             @0X05:rpage 2;//Timer/Counter 1 Control Register 1
static unsigned int  TM1CR2             @0X06:rpage 2;//Timer/Counter 1 Control Register 2
static unsigned int  TM1DBH             @0X07:rpage 2;//Timer/Counter 1 Data Buffer B High byte
static unsigned int  TM1DBL             @0X08:rpage 2;//Timer/Counter 1 Data Buffer B Low byte
static unsigned int  TM1DAH             @0X09:rpage 2;//Timer/Counter 1 Data Buffer A High byte
static unsigned int  TM1DAL             @0X0A:rpage 2;//Timer/Counter 1 Data Buffer A Low byte
static unsigned int  TM2CR1             @0X0B:rpage 2;//Timer 2 Control Register 1
static unsigned int  TM2CR2             @0X0C:rpage 2;//Timer 2 Control Register 2
static unsigned int  TM2DBH             @0X0D:rpage 2;//Timer/Counter 2 Data Buffer B High byte
static unsigned int  TM2DBL             @0X0E:rpage 2;//Timer/Counter 2 Data Buffer B Low byte

static unsigned int  TM2DAH             @0X0F:rpage 2;//Timer/Counter 2 Data Buffer A High byte
static unsigned int  TM2DAL             @0X10:rpage 2;//Timer/Counter 2 Data Buffer A Low byte
static unsigned int  RXCR               @0X11:rpage 2;//RX Control Register
static unsigned int  RX1CR1             @0X12:rpage 2;//RX1 Control Register 1
static unsigned int  RX1CR2             @0X13:rpage 2;//RX1 Control Register 2
static unsigned int  RX2CR1             @0X14:rpage 2;//RX2 Control Register 1
static unsigned int  RX2CR2             @0X15:rpage 2;//RX2 Control Register 2
static unsigned int  RXDCR              @0X16:rpage 2;//RX Deglitch Control Register
static unsigned int  TXSC               @0X17:rpage 2;//TX Sink Current Register
static unsigned int  TXCR1              @0X18:rpage 2;//TX Control Register 1

static unsigned int  TXCR2              @0X19:rpage 2;//TX Control Register 2
static unsigned int  TXDT               @0X1A:rpage 2;//TX Delay Timer Register
static unsigned int  TXCT               @0X1B:rpage 2;//TX Sink Current Timer Register
static unsigned int  TXRC               @0X1C:rpage 2;//TXTM Read Counting
static unsigned int  LRR                @0X1D:rpage 2;//Limiting Resistor Register
static unsigned int  C3DCLCR            @0X1D:rpage 2;//Limiting Resistor Register
static unsigned int  DCCR               @0X1E:rpage 2;//Discharge Control Register
static unsigned int  DCVS               @0X1F:rpage 2;//Discharge Voltage select Register
static unsigned int  PWMCCR             @0X20:rpage 2;//PWMC Control Register
static unsigned int  PRDCL              @0X21:rpage 2;//Low byte of PWMC period
static unsigned int  PRDCH              @0X22:rpage 2;//High byte of PWMC period

static unsigned int  DTCL               @0X23:rpage 2;//Low byte of PMWC duty
static unsigned int  DTCH               @0X24:rpage 2;//High byte of PMWC duty
static unsigned int  TMRCL              @0X25:rpage 2;//Low byte of TimerC
static unsigned int  TMRCH              @0X26:rpage 2;//High byte of TimerC
static unsigned int  AFPWMCCR1          @0X27:rpage 2;//Auto- Frequency PWMC control register 1
static unsigned int  AFPWMCCR2          @0X28:rpage 2;//Auto- Frequency PWMC control register 2
static unsigned int  AFDAL              @0X29:rpage 2;//Auto-Frequency Data Buffer A Low byte
static unsigned int  AFDAH              @0X2A:rpage 2;//Auto-Frequency Data Buffer A High byte
static unsigned int  AFDBL              @0X2B:rpage 2;//Auto-Frequency Data Buffer B Low byte
static unsigned int  AFDBH              @0X2C:rpage 2;//Auto-Frequency Data Buffer B High byte

static unsigned int  PRDCL_T            @0X2D:rpage 2;//Low byte of PWMC period_Target
static unsigned int  PRDCH_T            @0X2E:rpage 2;//High byte of PWMC period_Target
static unsigned int  DTCL_T             @0X2F:rpage 2;//Low byte of PMWC duty_Target
static unsigned int  DTCH_T             @0X30:rpage 2;//High byte of PMWC duty_Target
static unsigned int  LOCKPR             @0X47:rpage 2;//Lock Page Number Register
static unsigned int  LOCKCR             @0X48:rpage 2;//Lock Control Register
//;---------------------------------------------------------------------------------------
/*R1 Bits*/
static bit      SBS1          @0x01@5:rpage 0;
static bit      SBS0          @0x01@4:rpage 0;
static bit      GBS0          @0x01@0:rpage 0;
/*R3 Bits*/
static bit      INT_          @0x03@7:rpage 0;
static bit      N             @0x03@6:rpage 0;
static bit      OV            @0x03@5:rpage 0;
static bit      T             @0x03@4:rpage 0;
static bit      P             @0x03@3:rpage 0;
static bit      Z             @0x03@2:rpage 0;
static bit      DC            @0x03@1:rpage 0;
static bit      C             @0x03@0:rpage 0;
/*R5 Bits*/
static bit      P57           @0x05@7:rpage 0;
static bit      P56           @0x05@6:rpage 0;
static bit      P55           @0x05@5:rpage 0;
static bit      P54           @0x05@4:rpage 0;
static bit      P53           @0x05@3:rpage 0;
static bit      P52           @0x05@2:rpage 0;
static bit      P51           @0x05@1:rpage 0;
static bit      P50           @0x05@0:rpage 0;
/*R6 Bits*/
static bit      P62           @0x06@2:rpage 0;
static bit      P61           @0x06@1:rpage 0;
static bit      P60           @0x06@0:rpage 0;
/*IOCR5  Bits*/
static bit      IOCR57        @0x0B@7:rpage 0;
static bit      IOCR56        @0x0B@6:rpage 0;
static bit      IOCR55        @0x0B@5:rpage 0;
static bit      IOCR54        @0x0B@4:rpage 0;
static bit      IOCR53        @0x0B@3:rpage 0;
static bit      IOCR52        @0x0B@2:rpage 0;
static bit      IOCR51        @0x0B@1:rpage 0;
static bit      IOCR50        @0x0B@0:rpage 0;

static bit      P57CR         @0x0B@7:rpage 0;
static bit      P56CR         @0x0B@6:rpage 0;
static bit      P55CR         @0x0B@5:rpage 0;
static bit      P54CR         @0x0B@4:rpage 0;
static bit      P53CR         @0x0B@3:rpage 0;
static bit      P52CR         @0x0B@2:rpage 0;
static bit      P51CR         @0x0B@1:rpage 0;
static bit      P50CR         @0x0B@0:rpage 0;
/*IOCR6  Bits*/
static bit      IOCR62        @0x0C@2:rpage 0;
static bit      IOCR61        @0x0C@1:rpage 0;
static bit      IOCR60        @0x0C@0:rpage 0;

static bit      P62CR         @0x0C@2:rpage 0;
static bit      P61CR         @0x0C@1:rpage 0;
static bit      P60CR         @0x0C@0:rpage 0;
/*OMCR Bits */
static bit      CPUS          @0x0E@7:rpage 0;
static bit      IDLE          @0x0E@6:rpage 0;
static bit      PERCS         @0x0E@5:rpage 0;
static bit      IIPS          @0x0E@4:rpage 0;
static bit      FMSF          @0x0E@3:rpage 0;
static bit      RCM2          @0x0E@2:rpage 0;
static bit      RCM1          @0x0E@1:rpage 0;
static bit      RCM0          @0x0E@0:rpage 0;
/*EIESCR Bits*/
static bit      EI1ES1        @0x0F@3:rpage 0;
static bit      EI1ES0        @0x0F@2:rpage 0;
static bit      EI0ES1        @0x0F@1:rpage 0;
static bit      EI0ES0        @0x0F@0:rpage 0;
/*WUCR1 Bits*/
static bit      CMP2WK        @0x10@7:rpage 0;
static bit      CMP1WK        @0x10@6:rpage 0;
static bit      ADWK          @0x10@4:rpage 0;
static bit      INT1WK        @0x10@3:rpage 0;
static bit      INT0WK        @0x10@2:rpage 0;
/*WUCR2 Bits*/
static bit      CMP3WK        @0x11@6:rpage 0;
/*WUCR3 Bits*/
static bit      ICWKP6        @0x12@5:rpage 0;
static bit      ICWKP5        @0x12@4:rpage 0;
/*SYSCON Bits*/
static bit      LDOI          @0x13@7:rpage 0;
/*SFR1 Bits*/
static bit      CMP2SF        @0x14@7:rpage 0;
static bit      CMP1SF        @0x14@6:rpage 0;
static bit      ADSF          @0x14@4:rpage 0;
static bit      EXSF1         @0x14@3:rpage 0;
static bit      EXSF0         @0x14@2:rpage 0;
/*SFR2 Bits*/
static bit      CMP3SF        @0x15@6:rpage 0;
/*SFR3 Bits*/
static bit      PWMCPSF       @0x16@5:rpage 0;
static bit      PWMCDSF       @0x16@4:rpage 0;
static bit      PWMBPSF       @0x16@3:rpage 0;
static bit      PWMBDSF       @0x16@2:rpage 0;
static bit      PWMAPSF       @0x16@1:rpage 0;
static bit      PWMADSF       @0x16@0:rpage 0;
/*SFR4 Bits*/
static bit      P6ICSF        @0x17@5:rpage 0;
static bit      P5ICSF        @0x17@4:rpage 0;
/*SFR6 Bits*/
static bit      SHSF          @0x19@7:rpage 0;
/*SFR7 Bits*/
static bit      AFPWMSF       @0x1A@7:rpage 0;
static bit      TXDSF         @0x1A@6:rpage 0;
static bit      TXCSF         @0x1A@5:rpage 0;
static bit      TM2DASF       @0x1A@4:rpage 0;
static bit      TM1DASF       @0x1A@3:rpage 0;
static bit      TM1OFSF       @0x1A@2:rpage 0;
static bit      TM2DBSF       @0x1A@1:rpage 0;
static bit      TM1DBSF       @0x1A@0:rpage 0;
/*IMR1 Bits*/
static bit      CMP2IE        @0x1B@7:rpage 0;
static bit      CMP1IE        @0x1B@6:rpage 0;
static bit      ADIE          @0x1B@4:rpage 0;
static bit      EXIE1         @0x1B@3:rpage 0;
static bit      EXIE0         @0x1B@2:rpage 0;
/*IMR2 Bits*/
static bit      CMP3IE        @0x1C@6:rpage 0;
/*IMR3 Bits*/
static bit      PWMCPIE       @0x1D@5:rpage 0;
static bit      PWMCDIE       @0x1D@4:rpage 0;
static bit      PWMBPIE       @0x1D@3:rpage 0;
static bit      PWMBDIE       @0x1D@2:rpage 0;
static bit      PWMAPIE       @0x1D@1:rpage 0;
static bit      PWMADIE       @0x1D@0:rpage 0;
/*IMR4 Bits*/
static bit      P6ICIE        @0x1E@5:rpage 0;
static bit      P5ICIE        @0x1E@4:rpage 0;
/*IMR6 Bits*/
static bit      SHIE          @0x20@7:rpage 0;
static bit      AFPWMIE       @0x20@3:rpage 0;
static bit      TXTMIE        @0x20@2:rpage 0;
static bit      TM2IE         @0x20@1:rpage 0;
static bit      TM1IE         @0x20@0:rpage 0;
/*WDTCR Bits*/
static bit      WDTE          @0x21@7:rpage 0;
static bit      FSSF          @0x21@6:rpage 0;
static bit      PSWE          @0x21@3:rpage 0;
static bit      WPSR2         @0x21@2:rpage 0;
static bit      WPSR1         @0x21@1:rpage 0;
static bit      WPSR0         @0x21@0:rpage 0;
/*ADCR1 Bits*/
static bit      CKR1          @0x3E@6:rpage 0;
static bit      CKR0          @0x3E@5:rpage 0;
static bit      ADRUN         @0x3E@4:rpage 0;
static bit      ADP           @0x3E@3:rpage 0;
static bit      ADOM          @0x3E@2:rpage 0;
static bit      SHS1          @0x3E@1:rpage 0;
static bit      SHS0          @0x3E@0:rpage 0;
/*ADCR2 Bits*/
static bit      ADLPFEN       @0x3F@7:rpage 0;
static bit      ADIM          @0x3F@5:rpage 0;
static bit      ADCMS         @0x3F@4:rpage 0;
static bit      VPIS1         @0x3F@3:rpage 0;
static bit      VPIS0         @0x3F@2:rpage 0;
/*ADISR Bits*/
static bit      TSLPFEN       @0x40@7:rpage 0;
static bit      TSP           @0x40@6:rpage 0;
static bit      WMA1          @0x40@5:rpage 0;
static bit      WMA0          @0x40@4:rpage 0;
static bit      ADIS3         @0x40@3:rpage 0;
static bit      ADIS2         @0x40@2:rpage 0;
static bit      ADIS1         @0x40@1:rpage 0;
static bit      ADIS0         @0x40@0:rpage 0;
/*ADER1 Bits*/
static bit      ADE6          @0x41@6:rpage 0;
static bit      ADE5          @0x41@5:rpage 0;
static bit      ADE4          @0x41@4:rpage 0;
static bit      ADE3          @0x41@3:rpage 0;
static bit      ADE2          @0x41@2:rpage 0;
static bit      ADE1          @0x41@1:rpage 0;
static bit      ADE0          @0x41@0:rpage 0;

//SBANK 1
/*PWMSCR Bits*/
static bit      TBEN          @0x16@1:rpage 1;
static bit      TAEN          @0x16@0:rpage 1;
/*PWMACR Bits*/
static bit      PWMAE         @0x17@7:rpage 1;
static bit      PWMAA         @0x17@5:rpage 1;
static bit      PWMAS         @0x17@3:rpage 1;
static bit      TAP2          @0x17@2:rpage 1;
static bit      TAP1          @0x17@1:rpage 1;
static bit      TAP0          @0x17@0:rpage 1;
/*PWMBCR Bits*/
static bit      PWMBE         @0x1E@7:rpage 1;
static bit      PWMBA         @0x1E@5:rpage 1;
static bit      PWMBS         @0x1E@3:rpage 1;
static bit      TBP2          @0x1E@2:rpage 1;
static bit      TBP1          @0x1E@1:rpage 1;
static bit      TBP0          @0x1E@0:rpage 1;
/*EECR1 Bits*/
static bit      ONRD          @0x40@2:rpage 1;
static bit      RD            @0x40@1:rpage 1;
static bit      WR            @0x40@0:rpage 1;
/*EECR2 Bits*/
static bit      EEWE          @0x41@7:rpage 1;
static bit      EEDF          @0x41@6:rpage 1;
static bit      EEPC          @0x41@5:rpage 1;
/*TBPTH Bits*/
static bit      HLB           @0x46@7:rpage 1;
static bit      RDS           @0x46@6:rpage 1;
/*STKMON Bits*/
static bit      STOV          @0x47@7:rpage 1;
/*TBWCR Bits*/
static bit      IAPEN         @0x4D@0:rpage 1;
//SBANK2
/*TM1CR1 Bits*/
static bit      TM1S          @0x05@7:rpage 2;
static bit      TM1RC         @0x05@6:rpage 2;
static bit      TM1SS1        @0x05@5:rpage 2;
static bit      TM1RX1        @0x05@4:rpage 2;
static bit      TM1FF         @0x05@3:rpage 2;
static bit      TM1MOS        @0x05@2:rpage 2;
static bit      TM1IS1        @0x05@1:rpage 2;
static bit      TM1IS0        @0x05@0:rpage 2;
/*TM1CR2 Bits*/
static bit      TM1M2         @0x06@7:rpage 2;
static bit      TM1M1         @0x06@6:rpage 2;
static bit      TM1M0         @0x06@5:rpage 2;
static bit      TM1SS0        @0x06@4:rpage 2;
static bit      TM1CK3        @0x06@3:rpage 2;
static bit      TM1CK2        @0x06@2:rpage 2;
static bit      TM1CK1        @0x06@1:rpage 2;
static bit      TM1CK0        @0x06@0:rpage 2;
/*TM2CR1 Bits*/
static bit      TM2S          @0x0B@7:rpage 2;
static bit      TM2RC         @0x0B@6:rpage 2;
static bit      TM2SS1        @0x0B@5:rpage 2;
static bit      TM2RX2        @0x0B@4:rpage 2;
static bit      TM2FF         @0x0B@3:rpage 2;
static bit      TM2MOS        @0x0B@2:rpage 2;
static bit      TM2IS1        @0x0B@1:rpage 2;
static bit      TM2IS0        @0x0B@0:rpage 2;
/*TM2CR2 Bits*/
static bit      TM2M2         @0x0C@7:rpage 2;
static bit      TM2M1         @0x0C@6:rpage 2;
static bit      TM2M0         @0x0C@5:rpage 2;
static bit      TM2SS0        @0x0C@4:rpage 2;
static bit      TM2CK3        @0x0C@3:rpage 2;
static bit      TM2CK2        @0x0C@2:rpage 2;
static bit      TM2CK1        @0x0C@1:rpage 2;
static bit      TM2CK0        @0x0C@0:rpage 2;
/*RXCR Bits*/
static bit      RXIE          @0x11@7:rpage 2;
/*RX1CR1 Bits*/
static bit      RX1E          @0x12@7:rpage 2;
static bit      RX1HV4        @0x12@4:rpage 2;
static bit      RX1HV3        @0x12@3:rpage 2;
static bit      RX1HV2        @0x12@2:rpage 2;
static bit      RX1HV1        @0x12@1:rpage 2;
static bit      RX1HV0        @0x12@0:rpage 2;
/*RX1CR2 Bits*/
static bit      RX1OPE        @0x13@7:rpage 2;
static bit      RX1OUT        @0x13@6:rpage 2;
static bit      RX1LV4        @0x13@4:rpage 2;
static bit      RX1LV3        @0x13@3:rpage 2;
static bit      RX1LV2        @0x13@2:rpage 2;
static bit      RX1LV1        @0x13@1:rpage 2;
static bit      RX1LV0        @0x13@0:rpage 2;
/*RX2CR1 Bits*/
static bit      RX2E          @0x14@7:rpage 2;
static bit      RX2HV4        @0x14@4:rpage 2;
static bit      RX2HV3        @0x14@3:rpage 2;
static bit      RX2HV2        @0x14@2:rpage 2;
static bit      RX2HV1        @0x14@1:rpage 2;
static bit      RX2HV0        @0x14@0:rpage 2;
/*RX2CR2 Bits*/
static bit      RX2OPE        @0x15@7:rpage 2;
static bit      RX2OUT        @0x15@6:rpage 2;
static bit      RX2LV4        @0x15@4:rpage 2;
static bit      RX2LV3        @0x15@3:rpage 2;
static bit      RX2LV2        @0x15@2:rpage 2;
static bit      RX2LV1        @0x15@1:rpage 2;
static bit      RX2LV0        @0x15@0:rpage 2;
/*RXDCR Bits*/
static bit      RX1DS         @0x16@7:rpage 2;
static bit      RX1DT2        @0x16@6:rpage 2;
static bit      RX1DT1        @0x16@5:rpage 2;
static bit      RX1DT0        @0x16@4:rpage 2;
static bit      RX2DS         @0x16@3:rpage 2;
static bit      RX2DT2        @0x16@2:rpage 2;
static bit      RX2DT1        @0x16@1:rpage 2;
static bit      RX2DT0        @0x16@0:rpage 2;
/*TXSC Bits*/
static bit      TXCS3         @0x17@3:rpage 2;
static bit      TXCS2         @0x17@2:rpage 2;
static bit      TXCS1         @0x17@1:rpage 2;
static bit      TXCS0         @0x17@0:rpage 2;
/*TXCR1 Bits*/
static bit      TXE           @0x18@7:rpage 2;
static bit      TXTM          @0x18@5:rpage 2;
static bit      TXSR1         @0x18@4:rpage 2;
static bit      TXSR0         @0x18@3:rpage 2;
static bit      TXM2          @0x18@2:rpage 2;
static bit      TXM1          @0x18@1:rpage 2;
static bit      TXM0          @0x18@0:rpage 2;
/*TXCR2 Bits*/
static bit      TXS           @0x19@7:rpage 2;
static bit      TXCLK         @0x19@6:rpage 2;
static bit      TXDP2         @0x19@5:rpage 2;
static bit      TXDP1         @0x19@4:rpage 2;
static bit      TXDP0         @0x19@3:rpage 2;
static bit      TXCP2         @0x19@2:rpage 2;
static bit      TXCP1         @0x19@1:rpage 2;
static bit      TXCP0         @0x19@0:rpage 2;
/*LRR & C3DCLCR Bits*/
static bit      CMP3DS        @0x1D@7:rpage 2;
static bit      CMP3DT2       @0x1D@6:rpage 2;
static bit      CMP3DT1       @0x1D@5:rpage 2;
static bit      CMP3DT0       @0x1D@4:rpage 2;
static bit      CL1           @0x1D@1:rpage 2;
static bit      CL0           @0x1D@0:rpage 2;
/*DCCR Bits*/
static bit      CMP3E         @0x1E@7:rpage 2;
static bit      MCDC          @0x1E@6:rpage 2;
static bit      DCT2          @0x1E@4:rpage 2;
static bit      DCT1          @0x1E@3:rpage 2;
static bit      DCT0          @0x1E@2:rpage 2;
static bit      DCR1          @0x1E@1:rpage 2;
static bit      DCR0          @0x1E@0:rpage 2;
/*DCVS Bits*/
static bit      CMP3OUT       @0x1F@6:rpage 2;
static bit      DCP           @0x1F@3:rpage 2;
static bit      DCV2          @0x1F@2:rpage 2;
static bit      DCV1          @0x1F@1:rpage 2;
static bit      DCV0          @0x1F@0:rpage 2;
/*PWMCCR Bits*/
static bit      PWMCE         @0x20@7:rpage 2;
static bit      PWMCRC        @0x20@6:rpage 2;
static bit      PWMCA         @0x20@5:rpage 2;
static bit      TCEN          @0x20@4:rpage 2;
static bit      PWMCS         @0x20@3:rpage 2;
static bit      TCP2          @0x20@2:rpage 2;
static bit      TCP1          @0x20@1:rpage 2;
static bit      TCP0          @0x20@0:rpage 2;
/*AFPWMCCR1 Bits*/
static bit      AFPI2         @0x27@6:rpage 2;
static bit      AFPI1         @0x27@5:rpage 2;
static bit      AFPI0         @0x27@4:rpage 2;
static bit      AFPD2         @0x27@2:rpage 2;
static bit      AFPD1         @0x27@1:rpage 2;
static bit      AFPD0         @0x27@0:rpage 2;
/*AFPWMCCR2 Bits*/
static bit      AFPM2         @0x28@7:rpage 2;
static bit      AFPM1         @0x28@6:rpage 2;
static bit      AFPM0         @0x28@5:rpage 2;
static bit      AFPSS0        @0x28@4:rpage 2;
static bit      AFPCK3        @0x28@3:rpage 2;
static bit      AFPCK2        @0x28@2:rpage 2;
static bit      AFPCK1        @0x28@1:rpage 2;
static bit      AFPCK0        @0x28@0:rpage 2;
/*LOCKCR Bits*/
static bit      LOCKEN        @0x48@7:rpage 2;
/*
#define WDTC()      _asm{ wdtc }      //Clear WDT
#define NOP()       _asm{ nop }       //No Operation
#define ENI()       _asm{ eni }       //Enable interrupt
#define DISI()      _asm{ disi }      //Disable interrupt
#define SLEP()      _asm{ slep }      //Enter sleep or idle mode
*/